﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WuDada.Core.Post.Domain;

namespace WuDada.Core.Post.Service
{
    public interface IQuestionService
    {
        /// <summary>
        /// 新增Question
        /// </summary>
        /// <param name="questionVO">被新增的Question</param>
        /// <returns>新增後的Question</returns>
        QuestionVO CreateQuestion(QuestionVO questionVO);

        /// <summary>
        /// 取得Question By QuestionId
        /// </summary>
        /// <param name="questionId">QuestionId</param>
        /// <returns>Question</returns>
        QuestionVO GetQuestionById(int questionId);

        /// <summary>
        /// 刪除Question
        /// </summary>
        /// <param name="questionVO">被刪除的Question</param>
        void DeleteQuestion(QuestionVO questionVO);

        /// <summary>
        /// 更新Question
        /// </summary>
        /// <param name="questionVO">被更新的Question</param>
        /// <returns>更新後的Question</returns>
        QuestionVO UpdateQuestion(QuestionVO questionVO);

        /// <summary>
        /// 取得Question清單
        /// </summary>
        /// <param name="conditions">搜尋條件</param>
        /// <returns>Question清單</returns>
        IList<QuestionVO> GetQuestionList(IDictionary<string, string> conditions);

        /// <summary>
        /// 取得Question數量
        /// </summary>
        /// <param name="conditions"></param>
        /// <returns></returns>
        int GetQuestionCount(IDictionary<string, string> conditions);
    }
}
